package com.oldwine.order.mapper;

import com.oldwine.order.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface OrderMapper {
    /**
     * 根据id查询订单信息
     *
     * @param id 订单id
     * @return 返回Order对象
     */
    @Select("select * from tb_order where id =#{id} ")
    Order queryOrderById(@Param("id") Long id);
}
